<?php
	session_start();
	
	require('Scripts/Mapa/php/security/authenticate.php');
	//Validación de Usuario autenticado
	if (isset($_SESSION['signature']) and $_SESSION['signature'] != '')
	{
?>
<!DOCTYPE html>

<html>
<head>
    <title>Portal GIS - Itaipu</title>

    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link id="page_favicon" href="favicon.ico" rel="icon" type="image/x-icon" />
    <link href="Scripts/Mapa/hslayers/build/theme/default/style.css" rel="stylesheet" type="text/css" />
    <link href="Scripts/Mapa/ext/resources/css/ext-all-notheme.css" rel="stylesheet" type="text/css" />
    <link href="Scripts/Mapa/ext/resources/css/xtheme-gray.css" rel="stylesheet" type="text/css" />    
    <link href="Content/iehacks.css" rel="stylesheet" type="text/css" />
    <link href="Content/mapa.css" rel="stylesheet" type="text/css" />

    <!--habilitar para tener acceso a las capas google PUBLIC "-//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd-->
    <script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false" type="text/javascript"></script>
   
    <script src="Scripts/Mapa/ext/adapter/ext/ext-base.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/ext/ext-all.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/hslayers/build/OpenLayers.js" type="text/javascript"></script>

    <script src="Scripts/Mapa/hslayers/build/GeoExt.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/hslayers/build/HS.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/hslayers/build/HSLayers.js" type="text/javascript"></script>
   
    <script src="Scripts/Mapa/tools.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/LayerSwitcher.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/hslayers/build/HSLayers/Control/DrawControls.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/hslayers/build/HSLayers/Control/Measure.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/hslayers/source/HSLayers/InfoPanel.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/hslayers/source/HSLayers/Control/Query.js" type="text/javascript"></script>
    <!--script src="Scripts/Mapa/hslayers/build/HSLayers/Control/Pin.js" type="text/javascript"></script-->
    <script src="Scripts/Mapa/hslayers/build/HSLayers/Control/Click.js" type="text/javascript"></script>
    <script src="Scripts/Mapa/cssBrowserSelector.js" type="text/javascript"></script>
        
    <!--script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"></script-->

    <!--Para los gráficos-->
    <script language="javascript" type="text/javascript" src="Scripts/Mapa/flot/jquery.js"></script>
    <!--script language="javascript" type='text/javascript' src='Scripts/Mapa/ext/adapter/jquery/ext-jquery-adapter.js'></script-->
    <script language="javascript" type="text/javascript" src="Scripts/Mapa/flot/jquery.flot.trunk.pie.js"></script>
    <link rel='stylesheet' type='text/css' href='Content/Flot.css' />
    <script  type="text/javascript" src="Scripts/Mapa/flot/Flot.js"></script>
    
    <!--Para el filtro en la Grilla-->
    <script type="text/javascript" src="Scripts/Mapa/ux/menu/EditableItem.js"></script>
    <script type="text/javascript" src="Scripts/Mapa/ux/menu/RangeMenu.js"></script>
    
    <script type="text/javascript" src="Scripts/Mapa/ux/grid/GridFilters.js"></script>
    <script type="text/javascript" src="Scripts/Mapa/ux/grid/filter/Filter.js"></script>
    <script type="text/javascript" src="Scripts/Mapa/ux/grid/filter/StringFilter.js"></script>
    <script type="text/javascript" src="Scripts/Mapa/ux/grid/filter/DateFilter.js"></script>
    <script type="text/javascript" src="Scripts/Mapa/ux/grid/filter/ListFilter.js"></script>
    <script type="text/javascript" src="Scripts/Mapa/ux/grid/filter/NumericFilter.js"></script>
    <script type="text/javascript" src="Scripts/Mapa/ux/grid/filter/BooleanFilter.js"></script>
	
	<script src="Scripts/Mapa/hslayers/build/LoadingPanel.js" type="text/javascript"></script>

    <script src="Scripts/Mapa/mapa.js" type="text/javascript"></script>
	
	<!-- Para gráficos con RGraph -->
	<script src="Scripts/Mapa/rgraph/libraries/RGraph.common.core.js" ></script>
    <script src="Scripts/Mapa/rgraph/libraries/RGraph.common.dynamic.js" ></script>
    <script src="Scripts/Mapa/rgraph/libraries/RGraph.common.tooltips.js" ></script>
    <script src="Scripts/Mapa/rgraph/libraries/RGraph.common.key.js" ></script>
	<!--script src="Scripts/Mapa/rgraph/libraries/RGraph.common.effects.js" ></script-->
    <script src="Scripts/Mapa/rgraph/libraries/RGraph.hbar.js" ></script>

	<!-- Para el File Manager -->
	<link rel="stylesheet" href="fmanager/fmanager/framewarp.css" />
	<script type="text/javascript" src="fmanager/fmanager/jquery.min.js"></script>
	<script type="text/javascript" src="fmanager/fmanager/init.js"></script>
	<script src="fmanager/fmanager/jquerypp.custom.js"></script>
    <script src="fmanager/fmanager/framewarp.js"></script>
    <script src="fmanager/fmanager/script.js"></script>
	
    <style type="text/css">
    .olControlScaleLine {
        background: white;
        padding: 2px;
        margin: 0 0 0 30px;
      }

      .olControlPanPanel{
        cursor: 'crosshair';
      }
	  
	.estado1-cell { 
		background: url(Content/img/white.png) no-repeat 2px 1px; 
		padding-left: 16px; 
		height: 16px;
	} 
	.estado2-cell { 
		background: url(Content/img/red.png) no-repeat 2px 1px; 
		padding-left: 16px; 
		height: 16px;
	} 
	.estado3-cell { 
		background: url(Content/img/celeste.png) no-repeat 2px 1px; 
		padding-left: 16px; 
		height: 16px;
	} 
	.estado4-cell { 
		background: url(Content/img/green.png) no-repeat 2px 1px; 
		padding-left: 16px; 
		height: 16px;
	} 
	.olControlLoadingPanel {
            background-image:url(Content/img/loading.gif);
            margin-left: 30%;
            margin-top: 50%;
            position: relative;
            width: 195px;
            height: 11px;
            background-position:center;
            background-repeat:no-repeat;
            display: none;
        }
	.con-adjunto
	{
	   background:url(Content/img/adjunto.png) 20px no-repeat !important;
	}
    </style>
</head>
<body>
    <div class="page">

        <div align="center" style="border:0px;">
            
            <!--iframe src="http://www.ibge.gov.br/barragov_2011/barragov.htm?BGCOLOR=3" width="100%" height="32" scrolling="no" allowtransparency="true" marginheight="0" marginwidth="0" name="barragov" frameborder="0"></iframe-->
            <div style="height:50px; background-image: url(Content/img/cabecera.jpg); background-repeat:repeat;"></div>
            

            <div id="main" style="margin:0 auto; margin-top:10px;text-align:left;">
				<div class="logoINDE" style=" height:50px;">
                    <div style="position:relative; float:left; height:50px;">
                        <a href="http://www.pti.org.py/linea500kv" TITLE="Portal GIS - Línea de 500 KV">
                            <img src="Content/img/txt_500kv.png" alt="PTI-MD" border="0" align="left" />
                        </a>
                    </div>
                    <!--div style="position:relative; float:right; height:50px;">
                        <a href="http://www.pti.org.py/v2/centros" target="_blank" TITLE="Centro de Innovación en Información Geográfica. PTI-PY">
                            <img src="Content/img/txt_ciig.png" alt="PTI-MD" border="0" align="left" />
                        </a>
                    </div>

                    <div style="position:relative; float:right; height:50px;">
                        <a href="http://www.pti.org.py/v2/centros" target="_blank" TITLE="Centro de Innovación en Ingeniería en Computación. PTI-PY">
                            <img src="Content/img/txt_ciic.png" alt="PTI-MD" border="0" align="left" />
                        </a>
                    </div-->

                    <div style="position:relative; float:right; height:50px;">
						<a href="http://www.itaipu.gov.py/es" target="_blank" TITLE="Superintendencia de Obras - Itaipu Binacional">
							<img src="Content/img/txt_sodt.png" alt="PTI-MD" border="0" align="left" />
						</a>
                    </div>

                    <div style="position:relative; float:right; height:50px;">
                        <a href="http://www.itaipu.gov.py/es" target="_blank" TITLE="Superintendencia de Informática - Itaipu Binacional">
                            <img src="Content/img/txt_sigg.png" alt="PTI-MD" border="0" align="left" />
                        </a>
                    </div>
				</div>
				<div class="page">
					<div id="map-area" />
                    <div id="mainpanel"/>
				</div>
				<div id="ext-canvas-container">
					<!--canvas id="cvs" height="200"></canvas-->
				</div>
            </div>  
        </div>
    </div>
</body>
</html>
<?php
	exit();
}
else
{
	header ("Location: Scripts/Mapa/php/security/403forbidden.php");
}
?>
